#ifndef NEWPROJECT_H
#define NEWPROJECT_H

#include <QWidget>
#include <QLineEdit>
#include <QFormLayout>
#include <QPushButton>
#include <QFileDialog>
#include <QString>
#include <QMessageBox>

#include <iostream>
#include <string>
#include <sstream>
#include <fstream>

#include "project.h"


using namespace std;


/*! @brief The new project widget will add control to create a new project  */
class NewProject : public QWidget
{
    Q_OBJECT

    /******************************************
     *              Public
     ******************************************/
     public:

        /******************************************
         *              Constructors
         ******************************************/

            NewProject();

        /******************************************
         *              Methods
         ******************************************/

        /******************************************
         *              Properties
         ******************************************/

            QFormLayout *   m_Layout;
            QLineEdit   *   m_ProjectName;
            QLineEdit   *   m_ProjectPath;
            QPushButton *   m_ChoosePathButton;
            QPushButton *   m_Validation;

    /******************************************
     *              Slots
     ******************************************/
    public slots:

        void SaveProject();
        void SelectPath();

    /******************************************
     *              Signals
     ******************************************/
    signals :

        void ProjectCreated(Project * proj);

};

#endif // NEWPROJECT_H
